package com.inifitness.admin.core.system.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.inifitness.admin.core.system.model.entity.SysUserRole;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 用户角色访问层
 *
 * @author sunjinfeng
 * @since 2024/04/18 11:00:00
 */
@Mapper
public interface SysUserRoleMapper extends BaseMapper<SysUserRole> {

  /**
   * 获取角色绑定的用户数
   *
   * @param roleId 角色ID
   */
  int countUsersForRole(@Param("roleId") Long roleId);
}
